<!--<div class="main-title clearfix">
    <h1>Appearance</h1>
</div>-->
<?php $this->renderPartial('_appearance_tabs'); ?>
<div class="grid_16">
    <div class="admin-agency form">
		<?php
		$form = $this->beginWidget('CActiveForm', array(
			'id' => 'admin-agency-appearance-form',
			'enableAjaxValidation' => FALSE,
			'htmlOptions' => array(
				'enctype' => 'multipart/form-data',
			)
				));
		?>
        <div class="section">
			<div class="block">
				<table class="form-table">
					<tr>
						<th width="120" scope="row">
							<?php echo $form->labelEx($agency, 'logo', array('label' => $agency->type . ' Logo')); ?><br/>
							<label class="hint">Logo to be shown in invoices and forms</label>
						</th>
						<td>
							<div id="agent-logo-preview">
								<img src="<?php echo $agency->getLogo(); ?>" />
							</div>
							<?php echo $form->fileField($agency, 'logo'); ?>
							<?php echo $form->error($agency, 'logo'); ?>
						</td>
					</tr>
				</table>
				<table class="form-table">
					<th>
						<button type="submit" class="link-button round_all no-margin">
							<span>Save Logo</span>
						</button>
					</th>
				</table>
			</div>
        </div>
		<?php $this->endWidget(); ?>
    </div>
</div>